package com.chinacoal.microservice.mapper;

import com.baomidou.mybatisplus.mapper.BaseMapper;
import com.baomidou.mybatisplus.plugins.Page;
import com.chinacoal.microservice.pojo.CcmsSmartleasingMessage;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;

/**
 * @author zhuliang
 * @version V1.0
 * @Description: 消息管理-mybatis-plus接口类
 * @date 2020-12-17 10：47
 */
public interface CcmsSmartleasingMessageMapper extends BaseMapper<CcmsSmartleasingMessage> {

    /**
     * @Description: 查询所有的消息信息（带分页）
     * @author zhuliang
     * @date 2020/12/31 17:07
     */
    List<CcmsSmartleasingMessage> getAllByPage(Page<CcmsSmartleasingMessage> toPage,
                                               @Param("fkPropertyCompanyId") String fkPropertyCompanyId,
                                               @Param("fkAdministrativeOfficeId") String fkAdministrativeOfficeId);

    /**
     * @Description: 条件查询所有的消息信息（带分页）
     * @author zhuliang
     * @date 2020/12/31 17:23
     */
    List<CcmsSmartleasingMessage> getAllByCondition(Page<CcmsSmartleasingMessage> toPage,
                                                    @Param("equipmentSerialNumber") String equipmentSerialNumber,
                                                    @Param("region") String region,
                                                    @Param("fkEquipmentTypeId") String fkEquipmentTypeId,
                                                    @Param("equipmentName") String equipmentName,
                                                    @Param("fkBuildingId") String fkBuildingId,
                                                    @Param("firstDate") Date firstDate,
                                                    @Param("endDate") Date endDate,
                                                    @Param("fkPropertyCompanyId") String fkPropertyCompanyId,
                                                    @Param("fkAdministrativeOfficeId") String fkAdministrativeOfficeId);
}
